<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html" charset="utf-8" />
        <link rel="stylesheet" href="../../bootstrap/css/bootstrap.css" type="text/css" />
        <link rel="stylesheet" href="../../js/ui/jquery.ui.min.css" type="text/css" />
        <script src="../../js/jquery.js"></script>
        <script src="../../bootstrap/js/bootstrap.js"></script>
        <script src="../../js/jquery.ui.min.js"></script>
        <script src='../../js/typeahead.js'></script>
        <script src='../../js/html2canvas.js'></script>
        <script type="text/javascript">
            var $bk = null;
            var app = {
                doAppAjax: function(options) {
                    options.url = this.ajaxRequestPath + options.url;
                    $.ajax(options);
                },
                doSimpleAjaxCall: function(options) {
                    $.ajax(options);
                },
                ajaxRequestPath: "",
                ajaxRequestPathSimple: "",
                requestPathSimple: "",
                toPrinter: function(callback) {
                    $bk = $(document.body).html();
                    $newHtml = $("#resultado").html();
                    $(document.body).html($newHtml);
                    window.print();
                    $(document.body).html($bk);
                    if (callback) {
                        callback();
                    }
                }
            };
        </script>
        <style>
            .noPad{
                padding:2px;
            }
            
        </style>
    </head>
    <body>
        <form id="reportform" name="reportform" method="post" action="main.php">
            <div id="tabs">
                <ul class="nav nav-tabs">
                    <li class="active">
                        <a href="#tab1"><?php echo $this->defaultReport->label; ?></a>
                    </li>
                </ul>
                <div id="tab-cont" style="font-size: 11px;  margin: 5px; height:100%">
                    <div id="rheaders" class="">
                        <?php echo $this->defaultReport->show(); ?>
                        <?php include 'rpt_printers.php'; ?>
                    </div>
                    <div id="resultado" style="margin-top: 5px;">
                    </div>        
                </div>
            </div>
        </form>
    </body>
</html>
